import request from "@/utils/request";

export const getAllProvince = async () => {
  return await request({
    url: "/address/loadAllProvinces",
    method: "get"
  });
};
export const getAllCity = async data => {
  return await request({
    url: "/address/loadAllCityByProvinces",
    method: "get",
    params: data
  });
};
export const getAllArea = async data => {
  return await request({
    url: "/address/loadAllAreasByCity",
    method: "get",
    params: data
  });
};
export const getAllStreet = async data => {
  return await request({
    url: "/address/loadAllStreetByAreas",
    method: "get",
    params: data
  });
};
